<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateOrdersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('orders', function (Blueprint $table) {
            $table->increments('id');
            $table->string('order_id',32)->default('');
            $table->string('order_date',20)->default('');
            $table->integer('status')->unsigned()->default(0);
            $table->double('total_amount',10,2)->default(0);
            $table->string('address',50)->default('');
            $table->string('consignee',10)->default('');
            $table->string('mobile',15)->default('');
            $table->string('remark',150)->default('');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('orders');
    }
}
